<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      body,
      ul {
        margin: 0;
        padding: 0;
      }
      body {
        width: 100%;
        height: 100%;
        background-image: url(../../images/grid.png);
      }
      svg {
        background-color: rgba(255, 0, 0, 0.1);
      }
    </style>
  </head>
  <body>
    <svg width="300" height="200">
      <rect x="0" y="0" width="100" height="50" fill="red">
        <animateTransform
          attributeName="transform"
          type="translate"
          from="0, 0"
          to="200, 0"
          dur="2s"
          begin="1s"
          repeatCount="indefinite"
        ></animateTransform>
      </rect>
    </svg>

    <svg width="300" height="200">
      <rect x="0" y="0" width="100" height="50" fill="red">
        <animateTransform
          attributeName="transform"
          type="translate"
          values="0 0; 200 0"
          dur="2s"
          begin="1s"
          repeatCount="indefinite"
        ></animateTransform>
      </rect>
    </svg>
  </body>
</html>
